#!/bin/sh

set -e

. /usr/share/debconf/confmodule

case "$1" in
    configure)
        db_get snoopy/install-ld-preload
        if [ x"$RET" = x"true" ] ; then
            /usr/sbin/snoopyctl enable
        fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0
